/* Author : Putri Andita R
 * 		    091511059
 * Proyek 4*/


package jtk.project4.fleet.field;

import java.awt.FlowLayout;

import nl.coderight.jazz.form.FormField;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.button.PushButton;

public class PartTombolField extends GroupControl{
	
	private PushButton addButton;
	private PushButton editButton;
	private PushButton deleteButton;
	

	
	public PartTombolField(String bindID){
		setBindID(bindID);
		createFields();
		createLayout();
	}	
	
	private void createFields() {
		addButton = new PushButton("addAction");
		editButton = new PushButton("editAction");
		deleteButton = new PushButton("deleteAction");
		}
	
		
	
	private void createLayout() {
		// TODO Auto-generated methodstub
		setLayout(new FormLayout())
		.addField(addButton)
		.addField(editButton)
		.addField(deleteButton)
		.addRow()
		.addLabel("! Use the 'Part Associations' area to indicate part  required                                               ")
		.addRow()
		.addLabel("to perform the selected 'PM Service'. When the 'PM Service' is due or chosen,                                ")
		.addRow()
		.addLabel("the parts required to perform the maintenance will be automatically populated on the work order.");
		
		
		}
	


	
}
		
	
	
	